<?php

$url = "name=rasmus lerdorf&age=56&location=New Delhi's";
//"http%3A%2F%2Fmysite.com%3Fname%3Drasmus+lerdorf%26age%3D56%26location%3DNew+Delhi%22s"
echo '<a href="http://mysite.com?'.urlencode($url).'">Click Here</a>';
var_dump(urlencode($url));
